import { getLevelFirst, getLevelZero, getUserID } from '@/utils';
/**
 * 物料信息权限
 * */
export const MaterialManageTab = (curRes: Record<string, any>) => {
  if (curRes?.['/materialController/createCompanyID']) {
    return {
      createCompanyID: getLevelZero(),
      params: 'createCompanyID',
    };
  } else if (curRes?.['/materialController/createDepartmentID']) {
    return {
      createDepartmentID: getLevelFirst(),
      params: 'createDepartmentID',
    };
  } else if (curRes?.['/materialController/createrID']) {
    return {
      createrID: getUserID(),
      params: 'createrID',
    };
  }
};
